package com.jx.mlxg.entity;

<<<<<<< HEAD
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;
import java.sql.Date;
import java.time.LocalDateTime;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * 
 * @TableName material_request
 */
@TableName(value ="material_request")
@Data
public class MaterialRequest {

    @TableField(exist = false)
    private Integer addressId;

    @TableField(exist = false)
    private List<Product>  products;

    @TableField(exist = false)
    private BigDecimal  discountAmount;//活动优惠金额

    /**
     *
     */
    @TableId(value = "request_id", type = IdType.AUTO)
    private Integer requestId;

    /**
     *
     */
    @TableField(value = "product_id")
    private Integer productId;

    /**
     *
     */
    @TableField(value = "quantity")
    private Integer quantity;

    /**
     *
     */
    @TableField(value = "name")
    private String name;

//  on;

    /**
     *
     */
    @TableField(value = "created_at")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdAt;

    /**
     *
     */
    @TableField(value = "updated_at")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime  updatedAt;

    /**
     * 
     */
    @TableField(value = "shipping_address")
    private String shippingAddress;

    /**
     * 
     */
    @TableField(value = "total_money")
    private BigDecimal totalMoney;//优惠前总金额

    @TableField(value = "phone")
    private String phone;

    @TableField(value = "remark")
    private String remark;

    @TableField(value = "real_amount")
    private BigDecimal realAmount;//实付金额

}
=======
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

import java.sql.Date;
import java.time.LocalDateTime;

@Component
@Data
@AllArgsConstructor
@NoArgsConstructor
public class MaterialRequest {
    private Integer requestId;
    private Integer productId;
    private Integer quantity;
    private String purpose;
    private String requestStatus;
    private String applicant;
    private String approver;
    private String approvalOpinion;
    private LocalDateTime createdAt;
    private LocalDateTime updatedAt;
}
>>>>>>> eb72a42842a7e02f996c4f2d21dc4051aa14ecf1
